﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.GoodsSpec.Model
{
    public class SpecGroupAdd
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [NumValidate("shop.goods.id.null", 1)]
        public long GoodsId { get; set; }

        /// <summary>
        /// 规格名
        /// </summary>
        [NullValidate("shop.spec.group.name.null")]
        [LenValidate("shop.spec.group.name.len", 2, 50)]
        public string GroupName { get; set; }
    }
}
